from django.conf.urls.defaults import *
##@author Alessio Di Pietro
#@author Irene Scionti

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    #find webapp
    ( r'^app/find/$', 'versionSyncWebApp.websearch.views.find'),
    #ajax_find
    ( r'^app/ajax_find/(?P<key>[\w\s\-\@\*\+\=\-\[\]\\\/\{\}\|\:\<\>\?\,\.\+]*)/(?P<entry_type>\d+)/(?P<entry_field>\w+)/$', 'versionSyncWebApp.websearch.views.ajax_find'),
    #ajax_restore
    ( r'^app/ajax_restore/(?P<entry_uid>[\w\-]+)/(?P<entry_revision>\d+)/(?P<entry_type>\d+)/$', 'versionSyncWebApp.websearch.views.ajax_restore'),
    ( r'^app/ajax_restore/(?P<entry_uid>[\w\-]+@[\w\-]+)/(?P<entry_revision>\d+)/(?P<entry_type>\d+)/$', 'versionSyncWebApp.websearch.views.ajax_restore'),

)
